﻿using Common.Utils;

namespace Game.Logic.Events
{
    public class GameEvent : BaseEvent
    {
        public GameEventType GameEventType
        {
            set
            {
                EventType = (int)value;
            }
            get
            {
                return (GameEventType)EventType;
            }
        }

        public static GameEvent Create(GameEventType _eventType)
        {
            return new GameEvent { GameEventType = _eventType };
        }

        public static T Create<T>(GameEventType _eventType) where T : GameEvent, new()
        {
            return new T { GameEventType = _eventType };
        }
    }

}
